
<template>
  <div class="tabDetail">
    <div class="top">
      <div v-for="(item, index) in arr" :key="index">
        <div class="top-item" :class="{active:Index==index}" @click="change(index)">
          {{ item }}
        </div>
      </div>
    </div>
    <div class="but">
      <div v-show="Index==0">讲师介绍---</div>
      <div v-show="Index==1">主讲课程---</div>
      <div v-show="Index==2" class="btn2">
        <img src="../../assets/images/empty.png" alt="">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  data() {
    return {
      arr: ["讲师介绍", "主讲课程", "学员评价"],
      Index:0
    };
  },
  created() {},
  mounted() {},
  methods: {
    change(e){
       this.Index=e
    }
  },
};
</script>
<style scoped lang='scss'>
.tabDetail {
  .top {
    display: flex;
    width: 100%;
    height: 63px;
    background-color: #fff;
    font-size: 20px;
    color: #646566;
    line-height: 63px;
    text-align: center;
    justify-content: space-around;
    div {
      flex: 1;
       height: 63px;
       margin: 0 auto;
      .top-item {
        width: 125px;
        height: 58px;
      }
    }
    .active {
      border-bottom: 5px solid rgb(235, 97, 0);
      color: rgb(235, 97, 0);
    }
  }
  .btn2{
    img{
        width: 750px;
        height: 750px;
    }
  }
}
</style>
